package dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class CartDao {

    public void insert(Connection connection) throws SQLException {
        // 操作cart表
        PreparedStatement preparedStatement1 = connection.prepareStatement("insert into cart() values(?,?)");
        preparedStatement1.setInt(1, 1);
        preparedStatement1.setInt(2, 2);
        preparedStatement1.executeUpdate();
    }
}
